package com.example.aibot.aiHelper.RAG;

import dev.langchain4j.data.segment.TextSegment;
import dev.langchain4j.store.embedding.EmbeddingStore;
import dev.langchain4j.store.embedding.inmemory.InMemoryEmbeddingStore;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class EmbeddingStoreConfig {
    @Bean
    public EmbeddingStore<TextSegment> embeddingStore() {
        // 使用内存存储（适合测试环境）
        return new InMemoryEmbeddingStore<>();
    }
}
